package com.hyt.it.ogt.data.service.pj.impl;

import com.hyt.core.base.BaseServiceImpl;
import com.hyt.it.ogt.data.mapper.pj.PjDataTeacherTaskInfoMapper;
import com.hyt.it.ogt.data.model.entity.pj.TeacherTaskInfo;
import com.hyt.it.ogt.data.service.pj.IPjDataTeacherTaskInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 评卷教师任务信息表 服务实现类
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
@Service
public class PjDataTeacherTaskInfoServiceImpl extends BaseServiceImpl<PjDataTeacherTaskInfoMapper, TeacherTaskInfo> implements IPjDataTeacherTaskInfoService {

    @Autowired
    private PjDataTeacherTaskInfoMapper pjDataTeacherTaskInfoMapper;

    @Override
    public TeacherTaskInfo selectMarkInfo(String projectId, String subjectId, String pieceId, String userId) {
        TeacherTaskInfo teacherTaskInfo = pjDataTeacherTaskInfoMapper.selectMarkInfo(projectId, subjectId, pieceId, userId);
        return teacherTaskInfo;
    }

    /**
     * 获取教师评卷信息
     * @param projectId 评卷
     * @param subjectId
     * @param userId
     * @return
     */
    @Override
    public TeacherTaskInfo getByUserId(String projectId, String subjectId, String userId) {
        TeacherTaskInfo teacherTaskInfo = pjDataTeacherTaskInfoMapper.getByUserId(projectId, subjectId, userId);
        return teacherTaskInfo;
    }
}
